﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IotWeek3Day17Web.Controllers
{
    public class ProductsController : Controller
    {
        //分页显示
        public IActionResult Index()
        {
            return View();
        }

        //修改页面
        public IActionResult Edit(int id)
        {
            ViewBag.Id = id; //ViewBag传值给编辑页面
            return View();
        }

        /// <summary>
        /// 添加页面
        /// </summary>
        /// <returns></returns>
        public IActionResult Add()
        {
            return View();
        }
    }
}
